'use strict'

class notice {

    constructor() {
        this.param = '/'
    }

    //创建资源
    async get(c) {
            try {
                let sqltext1 = `SELECT * FROM notice`;
                var r1 = await c.service.psql.query(sqltext1);
                return c.send(r1.rows);
            } catch (err) {
                console.log(err);
                return c.status(500).send('error');
            }
    }
}

module.exports = notice